package com.mz.ozy.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.view.View;

import androidx.viewpager.widget.ViewPager;

import com.mz.ozy.R;
import com.mz.ozy.activity.me.MyOrderActivity;

public class OrderViewPager extends ViewPager {

    public OrderViewPager(Context context) {
        super(context);
    }

    public OrderViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void setCurrentItem(int position) {
        MyOrderActivity.mOrderPosition = position;
        super.setCurrentItem(position);
    }
}
